package entity.jd;

/**
 * @author 胡小超
 * 2024/12/5 下午3:49
 * class 装备
 */
public class Equip {
    //属性
    private String name;        //装备名称
    private String type;        //装备类型(头盔、铠甲)
    private int speedPlus;   //速度增效
    private int attackPlus;  //攻击增效
    private int defensePlus; //防御增效

    public Equip() {}
    public Equip(String name, String type, int speedPlus, int attackPlus, int defensePlus) {
        this.name = name;
        this.type = type;
        this.speedPlus = speedPlus;
        this.attackPlus = attackPlus;
        this.defensePlus = defensePlus;
    }

    //封装
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getSpeedPlus() {
        return speedPlus;
    }

    public void setSpeedPlus(int speedPlus) {
        this.speedPlus = speedPlus;
    }

    public int getAttackPlus() {
        return attackPlus;
    }

    public void setAttackPlus(int attackPlus) {
        this.attackPlus = attackPlus;
    }

    public int getDefensePlus() {
        return defensePlus;
    }

    public void setDefensePlus(int defensePlus) {
        this.defensePlus = defensePlus;
    }
}
